-- GENERATED SPELL FOR [Mag'har Escort] --


function spell0_17417(pUnit, Event) --@Kick,n/a--
pUnit:FullCastSpellOnTarget(30460,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17417', 617, 1)
end

function Sorts_17417(pUnit, Event)
local choix_sorts_17417 = math.random(0, 0)
if choix_sorts_17417 == 0 then
pUnit:RegisterEvent('spell0_17417', 1, 1)
end
end

function mob17417_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17417', math.random(1500, 3000), 1)
end

function mob17417_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17417_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17417_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17417, 1, 'mob17417_Action')
RegisterUnitEvent(17417, 2, 'mob17417_Leave')
RegisterUnitEvent(17417, 3, 'mob17417_Kill')
RegisterUnitEvent(17417, 4, 'mob17417_Die')
